<%@taglib uri="/spring" prefix="spring"%>
<%@taglib uri="/c" prefix="c"%>
<%@page import="org.nightstudio.common.util.constant.RequestConstant" %>
<spring:hasBindErrors name="<%=RequestConstant.PARAM_KEY_COMMAND%>">  
	<c:forEach items="${errors.globalErrors}" var="error">
    	<div id="errors" class="error">
        	<c:if test="${error.defaultMessage == null}">
        		<spring:message code="${error.code}" arguments="${error.arguments}"/>
        	</c:if>
        	<c:if test="${error.defaultMessage != null}">
        		${error.defaultMessage}
        	</c:if>  
		</div>  
	</c:forEach>  
</spring:hasBindErrors>